﻿using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repository
{
	public interface IERRepository
	{
		List<ER> GetER();
		//查对应id的值
		List<ER> GetAllERId(int id);

		List<ER> GetERTiaoJ(string? humanName, string? hunmaMajorName, string? humanMajorKindName, DateTime? startDate, DateTime? endDate);

		//多条件查询只查有效简历
		List<ER> GetERYouxiaoJianl(string? PassPassComment, string? humanName, string? hunmaMajorName, string? humanMajorKindName, DateTime? startDate, DateTime? endDate);

		//查有效简历
		List<ER> GetERName(string name);

		Task<bool> AddER(ER e);

		Task<bool> UpdateER(ER e);
		Task<bool> UpdateERTuijian(ER e);
		Task<bool> UpdateERMianshi(ER e);
		Task<bool> UpdateERLuyong(ER e);

		Task<bool> DeleteER(int e);
	}
}
